home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir26
/
epi601_2.zip
/
FILES07.EXE
/
ZSCORE.PGM
< prev
next >
Wrap
Text File
|
1994-08-22
|
4KB
|
92 lines
************************************************************************
*ZSCORE.PGM Version 1.0, 20/FEB/1990 *
*An Epi Info program to present anthropometric Z-score distributions *
* by Kevin Sullivan, Division of Nutrition, CDC *
************************************************************************
cls
echo
echo
?Press <Enter> to READ the data file, NUTRI.REC... ?
READ NUTRI.REC
echo
?Press <Enter> to set up the necessary calculations...?
************************************************************************
ECHO Declaring missing variables based on Record Flag
************************************************************************
Define NOHA #
Define NOWH #
Define NOWA #
If (flag=1) or (flag=3) or (flag=5) or (flag=7) then NOHA = 1 else NOHA = 0
If NOHA then HAZ=.
If NOHA then HAP=.
If NOHA then HAM=.
If (flag=2) or (flag=3) or (flag=6) or (flag=7) then NOWH = 1 else NOWH = 0
If NOWH then WHZ=.
If NOWH then WHP=.
if NOWH then WHM=.
If (flag>3) and (flag<8) then NOWA = 1 else NOWA = 0
If NOWA then WAZ=.
If NOWA then WAP=.
If NOWA then WAM=.
************************************************************************
ECHO Defining Z-score categories
************************************************************************
Define HAZGRP _
Define WHZGRP _
Define WAZGRP _
************************************************************************
ECHO Creating Z-score categories
* note: was not able to use recode command with negative numbers *
************************************************************************
If HAZ>=-6.00 and HAZ<=-5.0 then HAZGRP="a"
If HAZ>=-4.99 and HAZ<=-4.5 then HAZGRP="b"
If HAZ>=-4.49 and HAZ<=-4.0 then HAZGRP="c"
If HAZ>=-3.99 and HAZ<=-3.5 then HAZGRP="d"
If HAZ>=-3.49 and HAZ<=-3.0 then HAZGRP="e"
If HAZ>=-2.99 and HAZ<=-2.5 then HAZGRP="f"
If HAZ>=-2.49 and HAZ<=-2.0 then HAZGRP="g"
If HAZ>=-1.99 and HAZ<=-1.5 then HAZGRP="h"
If HAZ>=-1.49 and HAZ<=-1.0 then HAZGRP="i"
If HAZ>=-0.99 and HAZ<=-0.5 then HAZGRP="j"
If HAZ>=-0.49 and HAZ<= 0.0 then HAZGRP="k"
recode haz to hazgrp 0.01-0.50=l 0.51-1.00=m 1.01-1.50=n 1.51-2.00=o 2.01-2.50=p 2.51-3.00=q 3.01-3.50=r 3.51-6.00=s
If HAZ= . then HAZGRP=.
If WHZ>=-6.00 and WHZ<=-5.0 then WHZGRP="a"
If WHZ>=-4.99 and WHZ<=-4.5 then WHZGRP="b"
If WHZ>=-4.49 and WHZ<=-4.0 then WHZGRP="c"
If WHZ>=-3.99 and WHZ<=-3.5 then WHZGRP="d"
If WHZ>=-3.49 and WHZ<=-3.0 then WHZGRP="e"
If WHZ>=-2.99 and WHZ<=-2.5 then WHZGRP="f"
If WHZ>=-2.49 and WHZ<=-2.0 then WHZGRP="g"
If WHZ>=-1.99 and WHZ<=-1.5 then WHZGRP="h"
If WHZ>=-1.49 and WHZ<=-1.0 then WHZGRP="i"
If WHZ>=-0.99 and WHZ<=-0.5 then WHZGRP="j"
If WHZ>=-0.49 and WHZ<= 0.0 then WHZGRP="k"
recode whz to whzgrp 0.01-0.5=l 0.51-1.0=m 1.01-1.5=n 1.51-2.0=o 2.01-2.5=p 2.51-3.0=q 3.01-3.5=r 3.51-6.0=s
If WHZ= . then WHZGRP=.
If WAZ>=-6.00 and WAZ<=-5.0 then WAZGRP="a"
If WAZ>=-4.99 and WAZ<=-4.5 then WAZGRP="b"
If WAZ>=-4.49 and WAZ<=-4.0 then WAZGRP="c"
If WAZ>=-3.99 and WAZ<=-3.5 then WAZGRP="d"
If WAZ>=-3.49 and WAZ<=-3.0 then WAZGRP="e"
If WAZ>=-2.99 and WAZ<=-2.5 then WAZGRP="f"
If WAZ>=-2.49 and WAZ<=-2.0 then WAZGRP="g"
If WAZ>=-1.99 and WAZ<=-1.5 then WAZGRP="h"
If WAZ>=-1.49 and WAZ<=-1.0 then WAZGRP="i"
If WAZ>=-0.99 and WAZ<=-0.5 then WAZGRP="j"
If WAZ>=-0.49 and WAZ<= 0.0 then WAZGRP="k"
recode waz to wazgrp 0.01-0.5=l 0.51-1.0=m 1.01-1.5=n 1.51-2.0=o 2.01-2.5=p 2.51-3.0=q 3.01-3.5=r 3.51-6.0=s
If WAZ= . then WAZGRP=.
set ignore=on
?Press <Enter> to do the report using the command REPORT ZSCORE.RPT
ECHO
ECHO Watch the progress indicator on the upper right..
report zscore.rpt
ECHO
ECHO
ECHO To understand how this report was produced, examine the files,
ECHO ZSCORE.PGM and ZSCORE.RPT in EPED.
?Use <PgUp> to scroll up or <Enter> to leave ANALYSIS?
QUIT